package com.guigu.health.excel;

import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.excel.EasyExcel;
import com.guigu.health.pojo.*;
import com.guigu.health.service.SetMealDetailsService;
import com.guigu.health.service.SetmealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import java.io.OutputStream;
import java.util.List;

/**
 * @ClassName:WriteExcelSetMemberDetails
 * @Description:写出套餐表到excel表
 * @Author:longtao
 * @Date:2021/4/6
 * @Version:1.0
 */
public class WriteExcelSetMemberDetails {
    /**
     * 生成套餐excel表
     * @param obj
     * @param list
     */
    public static void WriteSetMemberDetailsExcel(OutputStream obj,List<SetMemberDetails2> list){
        EasyExcel.write(obj,SetMemberDetails2.class).sheet().doWrite(list);
    }

    /**
     * 生成excel表
     * @param obj
     * @param list
     */
    public static void WriteCheckItemDetailsExcel(OutputStream obj, List<CheckItemDetails2> list){
        EasyExcel.write(obj,CheckItemDetails2.class).sheet().doWrite(list);
    }
}
